#! /bin/bash
read -p "input ip:" ip
ping -c1 ${ip} &>/dev/null
if [ $? -eq 0 ];then
	echo "${ip} is up"
else 
	echo "${ip} is down"
fi
